#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    float begin_x_val,begin_y_val,begin_y_val2,end_x_val,end_y_val,end_y_val2;
    QString beginTime;

    void getTimeStr();

    void checkWave0();
    void checkWave1();
    void checkWave2();
    void checkWave3();
    void checkWave4();
    void checkWave5();
    void checkWave6();
    void checkWave7();
    void checkWave8();
    void checkWave9();
    void checkWaveA();
    void checkWaveB();
    void checkPitch();
    void checkRoll();

    void mD2QVector();
    void findPlot();
    void waveForm(QLabel * label,QLabel * label2);
    void homeWaveForm();
    explicit MainWindow(QWidget *parent = nullptr);

    void resetRange();
    void resetPos();
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

    ~MainWindow();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
